<script setup lang="ts">
import MilestoneForm from './MilestoneForm.vue'
import { useRouter } from 'vue-router'

const router = useRouter()
</script>

<template>
  <div class="create-milestone">
    <div class="milestone-form-container">
      <MilestoneForm />
    </div>
    <div class="footer-group">
      <el-button type="primary">确认</el-button>
      <el-button @click="router.back()">返回</el-button>
    </div>
  </div>
</template>

<style scoped lang="scss">
.create-milestone {
  width: 100%;
  height: 100%;

  .mb-10 {
    margin-bottom: 10px;
  }

  .milestone-form-container {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    width: 100%;
    height: calc(100% - 56px);
    padding: 10px;
    margin-right: 10px;
    border-radius: 4px;

    ::v-deep {
      .milestone-form {
        width: 880px;
      }
    }
  }

  .create-milestone-form {
    width: calc(100% - 510px);
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 10px 6px rgb(0 0 0 / 10%);
  }

  .footer-group {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
  }
}
</style>
